<?php
/**
 * Objekt model
 * 
 * @author Mirche
 * @version 0.1
 *
 */
class Objekt extends AppModel{
	
	var $name = "Objekt";
	
	/**
	 * Every objekt belongs to municipality and a company
	 * @var array
	 */
	var $belongsTo = array(
        'Municipality' => array(
            'className'    => 'Municipality',
            'foreignKey'    => 'municipality_id'
        ),
        'Company' => array(
            'className'    => 'Company',
            'foreignKey'    => 'company_id'
        )
    );  
	
}